package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.HistorySearchDto;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ClassName: ApUserSearchService
 * Package: com.heima.search.service
 * Description:
 *
 * @Author 周阳阳
 * @Create 2024/10/22 16:41
 * @Version 1.0
 */
public interface ApUserSearchService {
    /**
     *保存用户搜索记录
     * @param keyword
     * @param userId
     */
    public void insert(String keyword,Integer userId);

    /**
     * 查询搜索历史
     * @return
     */
    public ResponseResult findUserSearch();

    /**
     * 删除历史记录
     * @param dto
     * @return
     */
    public ResponseResult delUserSearch(HistorySearchDto dto);
}
